<div class="tableToolbar">
	<div class="coll-md-8" id="addInput">
		<div class="coll-md-1">
			<input type="text" class='search' placeholder="项目名称" ng-model="ctrlScope.itemsearch.itemname">
		</div>
		<div class="coll-md-15">
			<input type="text" class='search' placeholder="用户名/真实姓名" ng-model="ctrlScope.itemsearch.name">
		</div>

		<div class="coll-md-35 scalenone" id="search2">
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.couponUseStatus">
					<option value=""  disabled selected hidden>红包使用</option>
					<option value="1">使用</option>
					<option value="0">未使用</option>
				</select>
			</div>
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.ticketUseStatus">
					<option value=""  disabled selected hidden>加息券使用</option>
					<option value="1">使用</option>
					<option value="0">未使用</option>
				</select>
			</div>
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.customerType">
					<option value=""  disabled selected hidden>用户类型</option>
					<option value="0">普通用户</option>
					<option value="1">业务员</option>
					<option value="2">员工</option>
					<option value="3">渠道用户</option>
					<option value="4">线下客户</option>
					<option value="5">其他客户</option>
				</select>
			</div>
			<div class="coll-md-25 triangle">
				<select class="form-control" ng-model="ctrlScope.itemsearch.investType">
					<option value=""  disabled selected hidden>投资类型</option>
					<option value="1">pc端</option>
					<option value="2">APP端</option>
					<option value="3">WAP端</option>
					<option value="4">微信端</option>
					<option value="5">自动投标</option>
					<option value="6">体验金使用</option>
					<option value="7">ios端</option>
					<option value="8">安卓端</option>
					<option value="9">锁定自动投标</option>
					<option value="10">未锁定自动投标</option>
				</select>
			</div>
		</div>
		<div class="coll-md-3 scalenone"  id="searchdate" datahide>
			<div class="coll-md-5" >
				<p class="input-group">
					<input type="text" class="search" placeholder="开始时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened" datepicker-options="dateOptions"
						   ng-minlength="1" />
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
			<div class="coll-md-5">
				<p class="input-group inline">
					<input type="text" class="search" placeholder="结束时间" uib-datepicker-popup="yyyy-MM-dd"
						   ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened" datepicker-options="dateOptions"
						   ng-minlength="1" />
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
												class="glyphicon glyphicon-calendar"></i></button>
							          </span>
				</p>
			</div>
		</div>
		<div class="coll-md-1">
			<input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
			<input type="button" class="small-icon search2" value="搜索">
			<input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
			<input type="button" class="small-icon reset" value="重置">

			<div class="dropdown-menu-right">
				<input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
					   aria-haspopup="true" aria-expanded="false">
				<input type="button" class="small-icon more" value="更多">
				<ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
					<li><a href="javascript:;">日期搜索</a></li>
					<li><a href="javascript:;">其他条件搜索</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="coll-md-2">
		<input type="button" class="bttn pos-left" ng-click="addOrderModal()" value="新建">
		<!--<button class="small-icon btn btn-default pos-right"  ng-click="download()">-->
			<!--<i class="fa fa-download"></i>-->
		<!--</button>-->
	</div>
</div>
<div style="width:100%;overflow-x: auto">
	<table ui-table="orderParams"  bordercolor="#eee" cellspacing="0px" style="border-collapse:collapse;">
		<thead>
		<tr>
			<th>id</th>
			<th>包名称</th>
			<th>状态</th>
			<th>添加时间</th>

			<th>更新时间</th>
			<th>操作</th>
		</tr>
		</thead>
		<tbody>

		<tr ng-repeat="item in orderParams.$rows" style="text-align: left">
			<td>{{item.id}}</td>
			<td>{{item.packageName}}</td>
			<td ng-if="item.status==1">等待审核</td>
			<td ng-if="item.status==2">计划进行中</td>
			<td ng-if="item.status==3">已结束</td>
			<td ng-if="item.status==4">包作废</td>
			<td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
			<td>{{item.updatetime | date:'yyyy-MM-dd HH:mm:ss'}} </td>
			<td>
				<a ng-click="modifyModal(item.id)">查看</a>
			</td>
		</tr>
		</tbody>
	</table>
</div>
<modal title="查看包" visible="showPage">
	<form class="form-horizontal">
		<div class="form-body">
			<div id="myTabContent2" class="tab-content" style="margin-top:10px;">
				<table>
					<thead>
					<tr>
						<th>id</th>
						<th>项目名称</th>
						<th>项目编号</th>
						<th>项目利率</th>
						<th>借款周期</th>
						<th>借款金额</th>
						<th>添加时间</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>
					<tr ng-repeat="item in pageListInt">
						<td>{{item.id}}</td>
						<td>{{item.itemName}}</td>
						<td>{{item.itemNumber}}</td>
						<td>{{item.itemRate}}%</td>
						<td>{{item.itemCycle}}{{item.itemCycleUnit | cycleUnit}}</td>
						<td>{{item.itemAccount}}</td>
						<td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
						<td>
							<a ng-click="modifyModal3(item.id)">查看</a>
						</td>
					</tr>
					</tbody>
				</table>
			</div>
		</div>
	</form>
</modal>
<modal title="查看标详情" visible="showInt">
	<form class="form-horizontal" role="form">
		<div class="form-body">
			<ul  class="nav nav-tabs">
				<li class="active"><a  href="#item21" data-toggle="tab" ng-click="info()">项目信息</a></li>
				<!--<li><a  href="#item26" data-toggle="tab">图片信息</a></li>-->
				<li><a  href="#item25" data-toggle="tab" ng-click="info()">项目时间</a></li>
				<!--<li><a  href="#item24" data-toggle="tab" ng-click="control()">风控信息</a></li>-->
				<li><a href="#item27" data-toggle="tab">产品图片</a></li>
				<li><a  href="#item23" data-toggle="tab" ng-click="invest()">投资记录</a></li>
			</ul>
			<div class="scrollArea">
				<div  class="tab-content" style="margin-top:10px;">
					<div class="tab-pane fade in active" id="item21" >
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">项目名称</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-model="ctrlScope.item.itemName" readonly>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">借款人</label>
									<div class="col-md-8">
										<input class="form-control" type="text" ng-model="ctrlScope.item.loanUser" readonly>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">借款金额</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.item.itemAccount+'元'"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">借款利率</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.item.itemRate+'%'"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">加息利率</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.item.itemAddRate+'%'"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">借款期限</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.item.itemCycle+(ctrlScope.item.itemCycleUnit | cycleUnit)"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">还款方式</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.item.itemRepayMethod | repayMethod"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">起投资金</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-model="ctrlScope.item.itemSingleMinInvestment"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">项目最高投资</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-model="ctrlScope.item.itemMaxInvestment"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">结束时间</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.item.endTime | date:'y-MM-dd HH:mm:ss'" readonly />
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">定时发标时间</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-model="ctrlScope.item.releaseTime" readonly />
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">是否可债转</label>
									<div class="col-md-8">
										<input type="text"  class="form-control" name='debtTransferable' ng-value="ctrlScope.item.debtTransferable | debtTransferable" readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6" ng-show="ctrlScope.item.debtTransferable==1">
								<div class="form-group">
									<label class="control-label col-md-4">债转服务费</label>
									<div class="col-md-8 percent">
										<input type="number"  required class="form-control" name='debtServeFeeRate' ng-model="ctrlScope.item.debtServeFeeRate" readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">是否新手标</label>
									<div class="col-md-8">
										<select class="form-control" disabled   ng-model="ctrlScope.item.itemIsnew">
											<option value="">请选择</option>
											<option value="1">是</option>
											<option value="0">否</option>
										</select>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">是否推荐标</label>
									<div class="col-md-8">
										<select class="form-control" disabled   ng-model="ctrlScope.item.itemIsrecommend">
											<option value="">请选择</option>
											<option value="1">是</option>
											<option value="0">否</option>
										</select>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-2">
								<div class="form-group">
									<label class="control-label col-md-12">描述</label>
								</div>
							</div>
							<div class="col-md-10">
								<div class="form-group">
									<div class="col-md-12" >
										<div ng-bind-html="ctrlScope.item.itemDesc" style="border:1px solid #ccc;border-radius: 4px;padding:8px;min-height:70px;width:100%;overflow: auto"></div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="tab-pane fade" id="item27" >
						<div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">
							<strong>个人资料</strong>
						</div>
						<div class="row">
							<div class="col-md-12">
								<ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">
									<li data-slierPics="{{imgs}}"
										ng-repeat="img in personalImgs track by $index"
										style="width:280px;height:200px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">
										<img src="{{img.picturePath}}" width="200" height="200"/>
									</li>
								</ul>
							</div>
						</div>
						<div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">
							<strong>资产图片</strong>
						</div>
						<div class="row">
							<div class="col-md-12">
								<ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">
									<li data-slierPics="{{imgs}}"
										ng-repeat="img in carImgs track by $index"
										style="width:280px;height:200px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">
										<img src="{{img.picturePath}}" width="200" height="200"/>
									</li>
								</ul>
							</div>
						</div>
						<div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">
							<strong>相关手续</strong>
						</div>
						<div class="row">
							<div class="col-md-12">
								<ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">
									<li data-slierPics="{{imgs}}"
										ng-repeat="img in procedureImgs track by $index"
										style="width:280px;height:200px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">
										<img src="{{img.picturePath}}" width="200" height="200"/>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<div id="item25" class="tab-pane fade" >
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">发标时间</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.time.releaseTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">初审时间</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.time.firstTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">满标时间</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.time.fullTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">复审时间</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.time.complexTime | date:'y-MM-dd HH:mm:ss'"  readonly="readonly">
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<div class="form-group">
									<label class="control-label col-md-4">还款时间</label>
									<div class="col-md-8">
										<input type="text" class="form-control" ng-value="ctrlScope.time.stillTime | date:'y-MM-dd HH:mm:ss'" readonly="readonly">
									</div>
								</div>
							</div>
							<div class="col-md-6">
							</div>
						</div>
					</div>
					<!--<div id="item24" class="tab-pane fade" >-->
						<!--<div class="row">-->
							<!--<div class="col-md-12">-->
								<!--<div class="form-group">-->
									<!--<label class="control-label col-md-2">资金安全</label>-->
									<!--<div class="col-md-10">-->
										<!--<textarea class="form-control" name="fundSecurity" readonly ng-model="ctrlScope.item.fundSecurity" disabled></textarea>-->
									<!--</div>-->
								<!--</div>-->
							<!--</div>-->
							<!--<div class="col-md-12">-->
								<!--<div class="form-group">-->
									<!--<label class="control-label col-md-2">风控措施</label>-->
									<!--<div class="col-md-10">-->
										<!--<textarea class="form-control" name="riskControlMeasures" readonly ng-model="ctrlScope.item.riskControlMeasures" disabled></textarea>-->
									<!--</div>-->
								<!--</div>-->
							<!--</div>-->
						<!--</div>-->
						<!--<div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">-->
							<!--<strong>风控垫付</strong>-->
						<!--</div>-->
						<!--<div class="row">-->
							<!--<div class="col-md-12">-->
								<!--<ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">-->
									<!--<li data-slierPics="{{riskImgs}}"-->
										<!--ng-repeat="img in riskImgs track by $index"-->
										<!--style="width:280px;height:200px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">-->
										<!--<img src="{{img.picturePath}}" width="200" height="200"/>-->
									<!--</li>-->
								<!--</ul>-->
							<!--</div>-->
						<!--</div>-->
						<!--<div class="col-md-12" style="margin: 20px 0;font-size: 18px;background: #efeff5;padding: 10px 0">-->
							<!--<strong>技术保障</strong>-->
						<!--</div>-->
						<!--<div class="row">-->
							<!--<div class="col-md-12">-->
								<!--<ul style="margin-top: -15px;display: inline-block;float: left;width: 860px">-->
									<!--<li data-slierPics="{{skillImgs}}"-->
										<!--ng-repeat="img in skillImgs track by $index"-->
										<!--style="width:280px;height:200px;float: left;display:inline;position:relative;margin-top: 20px;text-align: center;">-->
										<!--<img src="{{img.picturePath}}" width="200" height="200"/>-->
									<!--</li>-->
								<!--</ul>-->
							<!--</div>-->
						<!--</div>-->
					<!--</div>-->
					<div id="item23" class="tab-pane fade" >

						<button class="small-icon btn btn-default pos-right" style='margin-right:8px;' ng-click="recordDownload()">
							<i class="fa fa-download" ></i>
						</button>

						<table ui-table="orderParams1">

							<thead>
							<tr>
								<th>用户名</th>
								<th>投资金额</th>
								<th>应收总额</th>
								<th>应收本金</th>
								<th>应收利息</th>
								<th>投资类型</th>
								<th>投标时间</th>

							</tr>
							</thead>
							<tbody>

							<tr ng-repeat="item in orderParams1.$rows">
								<td>{{item.mobile}}</td>
								<td>{{item.investDealAmount}}元</td>
								<td>{{item.collectAmount}}元</td>
								<td>{{item.collectPrincipal}}元</td>
								<td>{{item.collectInterest}}元</td>
								<td>{{item.investType | investType}}</td>
								<td>{{item.addtime | date:'y-MM-dd HH:mm:ss'}}</td>
							</tr>
							</tbody>
						</table>

					</div>
				</div>
			</div>
		</div>
	</form>
</modal>
<modal title="新建" visible="newInstall">
	<input type="text" placeholder="请输入新建包名 " ng-model="add.myPageName"/>
	<form class="form-horizontal">
		<div class="form-body">

			<div id="myTabContent4" class="tab-content" style="margin-top:10px;">
				<table ui-table="orderParams2">
					<thead>
					<tr>
						<th></th>
						<th>资金名称</th>
						<th>公司名称</th>
						<th>借款周期</th>
						<th>周期单位</th>
						<th>借款金额</th>
						<th>项目利率</th>
						<th>还款方式</th>
						<!--<th>投资类型</th>-->
						<!--<th>订单号</th>-->
						<th>起息时间</th>
					</tr>
					</thead>
					<tbody>
					<tr ng-repeat="item in orderParams2.$rows">
						<td>
							<input type="checkbox" value="" name="" ng-checked="vaildcheck[item.id]" ng-click="addcheck(item.id)"/>
						</td>
						<td>{{item.itemName}}</td>
						<td>{{item.itemSecondName}}</td>
						<td>{{item.itemCycle}}</td>
						<td>{{item.itemCycleUnit | cycleUnit}}</td>
						<td>{{item.itemAccount}}</td>
						<td>{{item.itemRate}}%</td>
						<td ng-if="item.itemRepayMethod==1">一次性还款</td>
						<td ng-if="item.itemRepayMethod==2">等额本息</td>
						<td ng-if="item.itemRepayMethod==3">先息后本</td>
						<td ng-if="item.itemRepayMethod==4">每日付息</td>
						<td ng-if="item.itemRepayMethod==5">等额本金</td>
						<!--<td>ios</td>-->
						<!--<td>{{item.id}}</td>-->
						<td>{{item.interestTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
					</tr>
					</tbody>
				</table>
			</div>
		</div>
	</form>
	<input type="button" class="bttn pos-left" ng-click="installPage()" ng-disable="installIs" value="新建包" style="bottom:0px">
</modal>